package projet.service;

import projet.dao.DAOFactoryInterface;
import projet.dao.SessionDAOInterface;
import projet.entity.Session;

public class SubscribeService {
	
	public Session getSession(Long id) {
		DAOFactoryInterface daoFactory = DAOUtil.getDAOFactory();
		SessionDAOInterface sessionDAO = daoFactory.getSessionDAO();
		
		Session s = sessionDAO.getById(id);
		return s;
	}

}
